﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Fin004.aspx.cs" Inherits="Admin_Fin_Fin004" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phScript" Runat="Server">
    <script type="text/javascript" src="/Scripts/Controls/DatePicker/WdatePicker.js""></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="width: 100%; min-width: 700px">
        <div style="padding-right: 12px; display: block;">
            <table width="100%" cellspacing="2" cellpadding="2" class="AddTable" align="left">
               
              
                 <tr>
                    <td width="45px">
                        日期:
                    </td>
                    <td>
                       <span style="color: #FF6600;">
                    <input class="Wdate textBox" style="width: 180px;" runat="server" readonly="readonly"
                        type="text" id="txtStartDate" clientidmode="Static" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'txtEndate\')||$dp.$DV(\'9998-12-31\')}'})" />&nbsp;&nbsp;至&nbsp;&nbsp;
                    <input class="Wdate textBox" runat="server" readonly="readonly" type="text" id="txtEndate"
                        clientidmode="Static" style="width: 180px;" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'txtStartDate\');}',maxDate:'9998-12-31'})" />
                </span>
                    <span style="margin-left:8px">
                    <asp:Button id="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" /></span>
                    </td>
                    <td>
                    </td>
                  
                    <td width="56px" align="center">
                        <%=GetAddLink("Fin003a.aspx", null, 600, 500)%>
                    </td>
                </tr>
            </table>
        </div>
        <yncWeb:PagnationGrid PageSize="30" ID="pageGrid" runat="server" OnOnPageIndexChange="PageChanged">
            <HeaderTemplate>
                <table width="100%" cellspacing="0" cellpadding="0" class="pagnationtable" align="left">
                    <thead>
                        <tr>
                            <th width="40px">
                                序号
                            </th>
                            <th width="140px">
                                Supplier box No.
                            </th>
                            <th width="120px">
                                转出机构
                            </th>
                            <th width="120px">转入机构</th>
                            <th width="100px">
                                凭证盒数量
                            </th>
                            <th width="90px">
                                转出人
                            </th>
                            <th width="80px">
                                转出日期
                            </th>
                            <th width="80px">
                                状态
                            </th>
                            <th width="90px">
                                接收人
                            </th>
                            <th width="80px">
                                接收日期
                            </th>
                            <th>
                                备注
                            </th>
                            <th width="80px" class="center">
                                附件下载
                            </th>
                            <th width="120px" class="center">
                                操作
                            </th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Container.ItemIndex +1 %>
                    </td>
                    <td>
                        <%# Eval(VShippingInfoMetadata.ColumnNames.SupplierBoxNo)%>
                    </td>
                    <td>
                        <%# Eval(VShippingInfoMetadata.ColumnNames.FromDestinationName)%>
                    </td>
                    <td>
                        <%# Eval(VShippingInfoMetadata.ColumnNames.ToDestinationName)%>
                    </td>
                    <td>
                        <%# Eval(VShippingInfoMetadata.ColumnNames.BoxCount)%>
                        [<%# GetLink("凭证盒查看", "V", "Fin003c.aspx", Container.DataItem, 980, 680, false, VShippingInfoMetadata.ColumnNames.ShipID)%>]
                    </td>
                    <td>
                        <%# Eval(VShippingInfoMetadata.ColumnNames.Sender)%>
                    </td>
                    <td>
                        <%# Eval(VShippingInfoMetadata.ColumnNames.ShippingDate).FormatDate(ConstantValue.DateFormat)%>
                    </td>
                    <td>
                        <%# Eval(VShippingInfoMetadata.ColumnNames.ShippingStatusName)%>
                    </td>
                    <td>
                        <%# Eval(VShippingInfoMetadata.ColumnNames.ReceivedBy)%>
                    </td>
                    <td>
                        <%# Eval(VShippingInfoMetadata.ColumnNames.ReceivedDttm).FormatDate(ConstantValue.DateFormat)%>
                    </td>
                    <td>
                        <%# Eval(VShippingInfoMetadata.ColumnNames.Comments)%>
                    </td>
                    <td class="center action">
                        <%# (Eval(VShippingInfoMetadata.ColumnNames.AttachmentName).ToString()).Length > 0 ? string.Format("<a class='style4' href='/UploadFile/{0}'>附件下载</a>", Eval(VShippingInfoMetadata.ColumnNames.AttachmentName)) : ""%>                        
                    </td>
                    <td class="center action">
                        <%# (Eval(VShippingInfoMetadata.ColumnNames.ShippingStatus).ToString()).Equals(ConstantValue.ShippingStatusCode.Waiting) ? GetConfirmLink("确认接收", "A", "Fin004a.aspx", Container.DataItem, "您确定要接收吗?",  VShippingInfoMetadata.ColumnNames.ShipID) : ""%>
                        <%--<%# ((Eval(VShippingInfoMetadata.ColumnNames.ShippingStatus).ToString()).Equals(ConstantValue.ShippingStatusCode.Waiting) && LoginUserInfo.CurrentUser.IsAdmin )? GetConfirmLink("取消", "D", "Fin004a.aspx", Container.DataItem, "您确定要取消接收吗?",  VShippingInfoMetadata.ColumnNames.ShipID) : ""%>                      --%>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody> </table>
            </FooterTemplate>
        </yncWeb:PagnationGrid>
    </div>
</asp:Content>

